<?php

namespace App\Model\Purchase;

use Illuminate\Database\Eloquent\Model;

class Vendor extends Model
{

    const NAME = '供应商';

    protected $table = 'purchase_vendor';
//	public $timestamps = false;

    protected $fillable = [
        'name',
        'tel',
//	    'type',
//	    'pinyin',
        'country',
        'province',
        'city',
        'addr',
        'manager',
        'manager_email',
        'manager_phone',
        'status',
    ];


    //新增时默认设置
    public $attributes= [
        'status' => 1,
    ];

    protected static $translation = [
        'type' => [
            0 => '厂家',
            1 => '代理',
        ],
    ];






}
